import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import createImportPlugin from 'vite-plugin-import'
import path from 'path'
// import babelPluginImport from 'babel-plugin-import'
// https://vitejs.dev/config/
export default defineConfig({
    resolve: {
        alias: {
            '@': path.resolve(__dirname, 'src')
        }
    },
    css: {
        preprocessorOptions: {
            less: {
                javascriptEnabled: true,
            }
        }
    },
    plugins: [
        vue(),
        vueJsx(),
        createImportPlugin([
            {
                libraryName: "ant-design-vue",
                libraryDirectory: "lib",
                style: "less"
            }
        ])
    ]
})
